const {sequelize,Sequelize} = require('../../database/init')

const Organization = sequelize.define('Organization',{
    org_name:{
        type: Sequelize.STRING,
        allowNull: false,
        commit:"组织的名字"
    },
    org_description:{
        type: Sequelize.STRING,
        allowNull:true,
        commit:"组织的介绍"
    }
})

const Member =  sequelize.define('Member',{
    id:{
        type:Sequelize.INTEGER,
        autoIncrement:true,
        primaryKey:true,
        unique:true
    },
    status:{
        type:Sequelize.SMALLINT,
        allowNull:false,
        commit:"状态"
    }
})

module.exports = {
    Organization,
    Member
}